<%@page import="java.awt.print.Printable"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<html>
<head>
<title>_盘点明细</title>
</head>

<body>
<section class="content">

   <!-- 校对明细 -->
   <div class="box box-solid box-primary" >
	      <div class="box-header">
			<i class="fa fa-th-large"></i>
			<h3 class="box-title">盘点明细</h3>
		 </div> 
	<div class="box-body" >
	
	<table id="stockCodeTable" class="table table-bordered table-condensed" >
		<thead><tr>
		    <th >序号</th>
		    <th >商家名称</th>
		    <th style="width: 100px;">仓库网点</th>
		    <th >库位编码</th>
		    <th >箱编码</th>
		    <th style="width: 130px;">SKU</th>
		    <th >批次号</th>
		    <th >生产日期</th>
		    <th >过期日期</th>
		    
		    <th style="width: 130px;">可销（库存/点数）</th>
		    <th style="width: 130px;">不可销（库存/点数）</th>
		    <th style="width: 150px;">订单占用（库存/点数）</th>
		    
		    <th style="width: 100px;" >可销售(校对)</th>
		    <th style="width: 100px;">不可销售(校对)</th>
		    <th style="width: 100px;">订单占用(校对)</th>
		    
		    <th style="width: 50px;">处理结果</th>
		    
		</tr></thead>
		
	    <c:forEach items="${itemList}" var="item" varStatus="i">
				<tr id="tr_${item.id}" >
				   <td>${i.count}</td>
				   <td>${item.customer.customerName}</td>
				   <td>${item.warehouse.groupName}</td>
				   <td>${item.stockCode}</td>
				   <td>${item.boxCode}</td>
				   <td>${item.sku}</td>
				   <td>${item.batchCode}</td>
				   <td>${item.productDate}</td>
				   <td>${item.expireDate}</td>
				   
				   <td>${item.salesNum}/${item.salesNumCheck}</td>
				   <td>${item.unusedNum}/${item.unusedNumCheck}</td>
				   <td>${item.orderNum}/${item.orderNumCheck}</td>
				   
				   <td style="background-color: #99CCF0;">
						 ${item.salesNumFix }
				   </td>
				   <td style="background-color: #99CCF0;">
						 ${item.unusedNumFix}
				   </td>
				    <td style="background-color: #99CCF0;">
                         ${item.orderNumFix}
				   </td>
				   
				   <td id="tr_right_${item.id}">
				      <c:if test="${ (item.reverseFlag eq 'need') or (item.reverseFlag eq 'notreverse') }">
				                           <font color=red>未冲正处理</font>
				      </c:if>
				      <c:if test="${item.reverseFlag eq 'reverse' }">
				         <font color=blue>已冲正处理</font>
				      </c:if>
				      
				   </td>
				</tr>
		</c:forEach>
	 
	 </table>
	</div></div>	
	    
</section>
</body>
</html>
